<?php
return [
    'id' => 'returnvisit-form',
    'template' => 'form_default',
    'enableClientValidation' => false,
    'enableAjaxValidation' => true,
    'options' => ['class' => 'form-validate'],
    'models' => [
        'returnvisit' => [
            'title' => '添加客户',
            'th_with' => 80,
            'elements' => [
                'name' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],

                'mobile' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'category_id' => [
                    'type' => 'dropdownlist',
                    'option'=>[
                        'encode'=>false,
                        'style'=>'width:220px',
                        'prompt' => '请选择意向类别'
                    ]
                ],
                'interviewer_id' => [
                    'type' => 'dropdownlist',
                    'option'=>[
                        'encode'=>false,
                        'style'=>'width:220px',
                        'prompt' => '请选择负责人'
                    ]

                ],
                'type' => [
                    'type' => 'dropdownlist',
                    'option'=>[
                        'encode'=>false,
                        'style'=>'width:220px',
                        'prompt' => '请选择回访方式'
                    ]

                ],
                'created_at'=>[
                    'type'=>'text',
                    'options'=>[
                        'class'=>'datetimepicker',
                        //'prompt' => '回访时间'
                    ],
                ],

                'next_time'=>[
                    'type'=>'text',
                    'options'=>[
                        'class'=>'datetimepicker',
                        'prompt' => '下次回访时间'
                    ],
                ],
                'status' => [
                    'type' => 'dropdownlist',
                    'option'=>[
                        'encode'=>false,
                        'style'=>'width:220px',
                        'prompt' => '请选择客户类型'
                    ]

                ],
                'details'=>[
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                        'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload']],
                        'initialFrameWidth'=>'100%'
                    ],
                ],
                'results'=>[
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\Ueditor::className(),
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                        'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload']],
                        'initialFrameWidth'=>'100%'
                    ],
                ],

            ],
        ]
    ]
];
